<template>
	<view class="container">
		<view class="content">
			<view class="card-area">
				<view class="card-t">
					<image src="../../static/images/team-my.png" mode=""></image>
					<view class="card-title">我的佣金</view>
				</view>
				<view class="card-m">
					<view class="commission">1582632.00</view>
					<view class="grey-blue-F">≈ 0.02USDT</view>
				</view>
				<view class="card-b">
					<view class=""><image src="../../static/images/team-auto.png" mode=""></image>佣金自动发放</view>
					<view class=""><image src="../../static/images/team-commission.png" mode=""></image>我的佣金统计</view>
				</view>
			</view>
			<view class="list-area">
				<view class="list-item">
					<view class="item-head">今日佣金</view>
					<view class="item-amount">19856 $<button type="default" @click="enterInnerPage('commission')">查看</button></view>
					<view class="bottom-line"></view>
				</view>
				<view class="list-item">
					<view class="item-head">累计佣金</view>
					<view class="item-amount">12582 $<button type="default" @click="enterInnerPage('total')">查看</button></view>
					<view class="bottom-line"></view>
				</view>
				<view class="list-item">
					<view class="item-head">战队成员</view>
					<view class="item-amount">5820<button type="default" @click="enterInnerPage('members')">查看</button></view>
					<view class="bottom-line"></view>
				</view>
				<view class="list-item">
					<view class="item-head">战队介绍</view>
					<view class="item-model">等级模式<button type="default" @click="enterInnerPage('introduction')">查看</button></view>
					<view class="bottom-line"></view>
				</view>
			</view>
			<view class="scroll-area">
				<scroll-view scroll-y="true" class="scroll-content">
					<view class="scroll-row" v-for="(item, index) in scrollLists" :key="index">
						<image :src="item.img" mode=""></image>
						<view class="scroll-row-name">{{item.name}}</view>
						<view class="scroll-row-rank">{{item.rank}}</view>
						<view class="scroll-row-today">今日佣金</view>
						<button type="default">{{item.num}}</button>
					</view>
				</scroll-view>
			</view>
		</view>
		<!-- <tabbar-diy :isIndex="3"></tabbar-diy> -->
	</view>
</template>

<script>
	let _self;
	import tabbarDiy from '../../components/tabbar-diy.vue'
	export default {
		data() {
			return {
				isIndex: 3,
				scrollLists: [
					{img: '../../static/images/team-avator.png', name: '钱海燕', rank: '1', num: '+103.66$'},
					{img: '../../static/images/team-avator.png', name: '周海媚', rank: '2', num: '+103.66$'},
					{img: '../../static/images/team-avator.png', name: '杨荣华', rank: '3', num: '+103.66$'},
					{img: '../../static/images/team-avator.png', name: '蒙蒙蒙', rank: '4', num: '+103.66$'},
					{img: '../../static/images/team-avator.png', name: '故事与你', rank: '5', num: '+103.66$'},
					{img: '../../static/images/team-avator.png', name: '蒙蒙蒙蒙蒙蒙蒙蒙蒙', rank: '6', num: '+103.66$'},
				],
				today: '0.00',
				total: '0.00',
				
			}
		},
		components:{
			tabbarDiy
		},
		onLoad() {
			_self = this;
		},
		methods: {
			enterInnerPage(i){
				switch (i){
					case 'commission':
					uni.navigateTo({
						url: '/pages/team/team-commission?previous=3'
					})
					break;
					case 'total':
					uni.navigateTo({
						url: '/pages/team/total-commission'
					})
					break;
					case 'members':
					uni.navigateTo({
						url: '/pages/team/members'
					})
					break;
					case 'introduction':
					uni.navigateTo({
						url: '/pages/team/model-introduction'
					})
					break;
				}
			},
		}
	}
</script>

<style lang="scss" scoped>
	.container{
		color: #FFFFFF;
		min-height: 100vh;
		box-sizing: border-box;
		padding-bottom: 8rpx;
	}
	.content{
		padding-top: 20rpx;
		box-sizing: border-box;
		min-height: calc(100vh - 8rpx);
		background-color: #202A33;
	}
	.card-area{
		width: 686rpx;
		height: 321rpx;
		margin: 0 auto 13rpx;
		background-color: #111F2A;
		border-radius: 8rpx;
		
		.card-t{
			padding: 26rpx 40rpx;
			display: flex;
			align-items: center;
			margin-bottom: 14rpx;
			
			image{
				width: 53rpx;
				height: 53rpx;
				margin-right: 23rpx;
			}
			
			.card-title{
				height: 23rpx;
				line-height: 23rpx;
				padding-left: 10rpx;
				color: #0DD4BB;
				font-size: 26rpx;
				border-left: 3rpx solid #0DD4BB;
			}
		}
		.card-m{
			font-size: 24rpx;
			text-align: center;
			
			.commission{
				font-family: 'fzyt_GBK';//字体在App.vue文件中引入
				font-weight: bold;
				font-size: 50rpx;
				background: linear-gradient(to bottom, #7190FC 0%, #00E4DD 35%, #33D6FE 100%);
				background-clip: text;
				color: transparent;
				margin-bottom: 4rpx;
			}
		}
		.card-b{
			width: 100%;
			height: 100rpx;
			padding: 0 30rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 25rpx;
			
			image{
				width: 28rpx;
				height: 28rpx;
				margin: 0;
				margin-right: 14rpx;
				vertical-align: text-bottom;
			}
		}
	}
	.list-area{
		width: 686rpx;
		height: 363rpx;
		margin: 0 auto 13rpx;
		display: flex;
		justify-content: space-between;
		align-content: space-between;
		flex-wrap: wrap;
		
		.list-item{
			width: 330rpx;
			height: 175rpx;
			padding-left: 33rpx;
			box-sizing: border-box;
			border-radius: 8rpx;
			background-color: #111F2A;
			margin-bottom: 9rpx;
		}
		.item-head{
			font-size: 24rpx;
			color: #7190FC;
			margin-top: 40rpx;
		}
		.item-amount, .item-model{
			width: 100%;
			height: 56rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
		.item-amount{
			font-size: 29rpx;
			font-family: 'fzyt_GBK';
		}
		.item-model{
			font-size: 24rpx;
		}
		button{
			width: 84rpx;
			height: 38rpx;
			padding: 0;
			border-radius: 10rpx;
			margin: 0 24rpx;
			color: #FFFFFF;
			background-color: #0DD4BB;
			font-family: MicrosoftYaHei,Avenir,Helvetica,Arial,sans-serif;
			font-size: 24rpx;
			font-weight: lighter;
			line-height: 38rpx;
			transform: scale(0.75);
			transform-origin: 0% 50%;
		}
		.bottom-line{
			width: 255rpx;
			height: 4rpx;
			background: url(../../static/images/team-list-bottom-line.png) no-repeat;
			background-size: 100% 100%;
			margin-top: 10rpx;
		}
	}
	.scroll-area{
		margin: 0 auto;
		padding-top: 16rpx;
		width: 686rpx;
		height: 339rpx;
		background-color: #111F2A;
		border-radius: 6rpx;
		
		.scroll-content{
			width: 627rpx;
			height: 333rpx;
			margin: 0 auto;
		}
		.scroll-row{
			height: 80rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			
			image{
				width: 46rpx;
				height: 46rpx;
				border-radius: 50%;
				overflow: hidden;
			}
			
			button{
				width: 120rpx;
				height: 48rpx;
				background-color: #0DD4BB;
				border-radius: 10rpx;
				padding: 0;
				margin: 0;
				color: #FFFFFF;
				font-family: 'fzyt_GBK';
				font-size: 24rpx;
				line-height: 48rpx;
				transform: scale(0.875);
				transform-origin: 100% 50%;
			}
		}
		.scroll-row-name{
			margin-left: 17rpx;
			flex: 1;
			font-size: 24rpx;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}
		.scroll-row-rank{
			font-size: 25rpx;
			width: 30%;
			text-align: center;
		}
		.scroll-row-today{
			font-size: 24rpx;
			margin-right: 24rpx;
		}
	}
</style>
